package com.codeazur.as3swf.data.etc
{
   import flash.geom.Point;
   
   public class StraightEdge implements IEdge
   {
       
      
      protected var _from:Point;
      
      protected var _to:Point;
      
      protected var _lineStyleIdx:uint = 0;
      
      protected var _fillStyleIdx:uint = 0;
      
      public function StraightEdge(param1:Point, param2:Point, param3:uint = 0, param4:uint = 0)
      {
         super();
         this._from = param1;
         this._to = param2;
         this._lineStyleIdx = param3;
         this._fillStyleIdx = param4;
      }
      
      public function get from() : Point
      {
         return this._from;
      }
      
      public function get to() : Point
      {
         return this._to;
      }
      
      public function get lineStyleIdx() : uint
      {
         return this._lineStyleIdx;
      }
      
      public function get fillStyleIdx() : uint
      {
         return this._fillStyleIdx;
      }
      
      public function reverseWithNewFillStyle(param1:uint) : IEdge
      {
         return new StraightEdge(this.to,this.from,this.lineStyleIdx,param1);
      }
      
      public function toString() : String
      {
         return "stroke:" + this.lineStyleIdx + ", fill:" + this.fillStyleIdx + ", start:" + this.from.toString() + ", end:" + this.to.toString();
      }
   }
}
